package com.itheima.mapper;

import com.itheima.pojo.Clazz;
import com.itheima.pojo.Student;
import com.itheima.pojo.StudentQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface StudentMapper {
    List<Student> findClazzById(Integer id);
    /*班级分页管理*/
    List<Student> page(StudentQueryParam studentQueryParam);

    void addstudent(Student student);

    Student findById(Integer id);

    void update(Student student);

    void deleteByIds(List<Integer> ids);

    void disById(Integer id, Integer ssum, Integer csum, LocalDateTime up);
}
